package com.training.java.core.homework05;

public class Customer extends Person {

	public Customer(double cashOfOrganization, double cashOfIndividual) {
		super(cashOfOrganization, cashOfIndividual);
	}

	public void activity() {
		System.out.println("Customer purchases from vendor");
	}

	@Override
	public void debit(double payment) {
		super.setCashOfOrganization(super.getCashOfOrganization() + payment);

		// System.out.println("Payment to vendor debits vendor's account");
	}

	@Override
	public void credit(double payment) {
		super.setCashOfIndividual(super.getCashOfIndividual() - payment);

		// System.out.println("Payment to vendor credits customer's account");
	}
	
	public double getCashOfIRS() {
		return 0.0;
	}

}
